<div class="wrapper">

    <ul id="social">
        <li><a href="http://www.facebook.com/SitMontenegro" target="_blank"><img src="<?=base_url()?>assets/img/backgnds/icons/facebook3.png" alt="SIT Montenegro on Facebook"></a></li>
        <li><a href="http://www.linkedin.com/pub/ivan-kukic/30/b56/379" target="_blank"><img src="<?=base_url()?>assets/img/backgnds/icons/linkedin.png" alt="SIT Montenegro on Linked In"></a></li>
    </ul>

    <div id="body">
        <div class="platform">

            <?=$home['content']?>

        </div>


        <div class="platform">

            <h2><?=magic_substr($rentacar['content'],'<h1>','</h1>')?></h2>

            <h3 class="rentacar-color"><?=magic_substr($rentacar['content'],'<h3>','</h3>')?></h3>

            <? $array = preg_split('#</p><p>|<p>|</p>#i', $rentacar['content'], -1, PREG_SPLIT_NO_EMPTY); ?>
            <p><?=$array[1]?></p>
            <p><?=$array[2]?></p>
            <p><?=$array[3]?> <a href="<?=base_url('rentacar-pro')?>" class="more rentacar-color"><?=lang('link.more_info')?>...</a></p>                

            <!--<a href="<?=base_url('rentacar')?>" class="demo rentacar-demo">Online Demo</a>-->

        </div>
        <div class="platform">

            <h2><?=magic_substr($excursions['content'],'<h1>','</h1>')?></h2>

            <h3 class="excursions-color"><?=magic_substr($excursions['content'],'<h3>','</h3>')?></h3>

            <? $array = preg_split('#</p><p>|<p>|</p>#i', $excursions['content'], -1, PREG_SPLIT_NO_EMPTY); ?>
            <p><?=$array[1]?></p>
            <p><?=$array[2]?></p>
            <p><?=$array[3]?> <a href="<?=base_url('excursionstours-pro')?>" class="more excursions-color"><?=lang('link.more_info')?>...</a></p>

<!--            <a href="<?=base_url('excursions')?>" class="demo excursions-demo">Online Demo</a>-->

        </div>
        <div class="platform">

            <h2><?=magic_substr($accommodations['content'],'<h1>','</h1>')?></h2>

            <h3 class="accommodations-color fgmc"><?=magic_substr($accommodations['content'],'<h3>','</h3>')?></h3>

            <? $array = preg_split('#</p><p>|<p>|</p>#i', $accommodations['content'], -1, PREG_SPLIT_NO_EMPTY); ?>
            <p><?=$array[1]?></p>
            <p><?=$array[2]?></p>
            <p><?=$array[3]?> <a href="http://www.ibookhotel.me" target="_blank" class="more accommodations-color"><?=lang('link.more_info')?>...</a></p>

            <!--<a href="" class="demo accommodations-demo">Online Demo</a>-->

        </div>
    </div>
</div>

<div class="wrapper"> 
    <div id="ticker"> 
        <div id="view"> 
            <ul class="newsticker" style="width: 7550px; left: -865px;">

                <?
                    if(isset($tickerNews))
                        foreach($tickerNews as $news){
                            //$link = sredinaslov($news['title'],$news['id'],$news['cName']);
                            $link = base_url('news/'.urlify::filter($news['post_title']).'-'.$news['ID']);
                        ?>
                        <li><a href="<?=$link?>"><?=$news['post_title']?></a></li> 
                        <?
                    }
                ?>
            </ul>
        </div> 
        <a id="dec_butt" class="dec_butt" href="#">Nazad</a>
        <a id="inc_butt" class="inc_butt" href="#">Naprijed</a>  
    </div>

    <script type="text/javascript">
        var j = jQuery.noConflict();
        // ticker settings
        var newsTickerObj=j('.newsticker').nTicker();

        j(".nticker").newsTicker();

        j('#dec_butt')
        .mousedown( function() { newsTickerObj.nTicker('setSpeed', -3); } )
        .mouseup( function() { newsTickerObj.nTicker('setSpeed', 1); } )
        .click( function() { return false; } ) ;

        j('#inc_butt')
        .mousedown( function() { newsTickerObj.nTicker('setSpeed', 3); } )
        .mouseup( function() { newsTickerObj.nTicker('setSpeed', 1); } )
        .click( function() { return false; } ) ; 


        j('#nav a').hover(
            function() {
                newsTickerObj.nTicker('setSpeed', 0); 
            },
            function() {
                newsTickerObj.nTicker('setSpeed', 1); 
        }); 

    </script>
</div>

<div class="wrapper">
    <div id="banner" class="clearfix">

        <div class="banner2" id="slideeshow2">
            <a href="<?=base_url('cms-pro')?>"><img src="<?=$url;?>assets/img/banners/cms-banner_02_<?=$this->lang->lang()?>.jpg" alt="<?=lang('nav.cms-pro')?>" title="<?=lang('nav.cms-pro')?>" /></a>
        </div>
        <div class="banner1" id="slideeshow1">
            <a href="<?=base_url('cms-pro')?>"><img src="<?=$url;?>assets/img/banners/cms-banner_01_<?=$this->lang->lang()?>.jpg" alt="<?=lang('nav.cms-pro')?>" title="<?=lang('nav.cms-pro')?>" /></a>
        </div>

    </div>
</div>